<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:frmwrk="Corel Framework Data">
	<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

	<frmwrk:uiconfig>

		<frmwrk:applicationInfo userConfiguration="true" />
	</frmwrk:uiconfig>

	<!-- Copy everything -->
	<xsl:template match="node()|@*">
		<xsl:copy>
			<xsl:apply-templates select="node()|@*"/>
		</xsl:copy>
	</xsl:template>

	<xsl:template match="uiConfig/items">
		<xsl:copy>
			<xsl:apply-templates select="node()|@*"/>
			<!-- Define the button will contains menu is same in all projects -->
			<itemData guid="f1d3d1d0-cc8d-4f04-91cb-7112255b8af1" noBmpOnMenu="true"
					  type="flyout"
					  dynamicCategory="2cc24a3e-fe24-4708-9a74-9c75406eebcd"
					  userCaption="Bonus630 Dockers"
					  enable="true"
					  flyoutBarRef="FB727225-CEA7-4D27-BB27-52C687B53029"
                />
			<!-- Define the button which shows the docker -->
			<itemData guid="15f69593-d207-4c54-9ec8-f21df738bf5f" noBmpOnMenu="true"
					  type="checkButton"
					  check="*Docker('7ecbb340-6495-4447-bbe8-4c4048eaa492')"
					  dynamicCategory="2cc24a3e-fe24-4708-9a74-9c75406eebcd"
					  userCaption="JeffCDRTools"
					  enable="true"/>

			<!-- Define the web control which will be placed on our docker -->
			<itemData guid="a77dca36-3da1-4cc3-9c7e-0b9aaec6d89e"
					  type="wpfhost"
					  hostedType="Addons\SampleDockerCS20221\SampleDockerCS20221.dll,SampleDockerCS20221.DockerUI"
					  enable="true"/>

		</xsl:copy>
	</xsl:template>
	<!-- Define the new menu is same in all others project-->
	<xsl:template match="uiConfig/commandBars">
		<xsl:copy>
			<xsl:apply-templates select="node()|@*"/>

			<commandBarData guid="FB727225-CEA7-4D27-BB27-52C687B53029"
							type="menu"
							nonLocalizableName="Bonus630 Dockers"
							flyout="true">
				<menu>

					<!--Here change to new item-->
					<!--<item guidRef="DF67BEBE-6551-4F3B-BE5B-1BF46E16AB67"/>-->

				</menu>
			</commandBarData>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="uiConfig/commandBars/commandBarData[guid='FB727225-CEA7-4D27-BB27-52C687B53029']/menu">
		<xsl:copy>
			<xsl:apply-templates select="node()|@*"/>

			<!--Here change to new item-->
			<item guidRef="15f69593-d207-4c54-9ec8-f21df738bf5f"/>

		</xsl:copy>
	</xsl:template>
	<xsl:template match="uiConfig/dockers">
		<xsl:copy>
			<xsl:apply-templates select="node()|@*"/>

			<!-- Define the web docker -->
			<dockerData guid="7ecbb340-6495-4447-bbe8-4c4048eaa492"
						userCaption="JeffCDRTools"
						wantReturn="true"
						focusStyle="noThrow">
				<container>
					<!-- add the webpage control to the docker -->
					<item dock="fill" margin="0,0,0,0" guidRef="a77dca36-3da1-4cc3-9c7e-0b9aaec6d89e"/>
				</container>
			</dockerData>
		</xsl:copy>
	</xsl:template>

</xsl:stylesheet>
